Skip to content

Commit

Permalink
Preparing for new SourceJS plugin structure
Browse files Browse the repository at this point in the history
  • Loading branch information
robhrt7 committed May 8, 2014
1 parent 728eda7 commit dd143df
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
Bubble
===============

Bubble - Sourcejs plugin for spec comments.
[SourceJS](http://sourcejs.com) plugin for spec comments.

Compatible with Sourcejs v0.3+ (older version, with php could be found at [Source v0.2.1](https://github.com/sourcejs/Source/tree/v0.2.1)).

Documentation at [Sourcejs.com](http://sourcejs.com/docs/plugins/bubbles/index.html).
Compatible with SourceJS v0.4+, for v0.3.* use [previous release](https://github.com/sourcejs/sourcejs-bubble/archive/v0.0.9.zip).
6 changes: 6 additions & 0 deletions bubble.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* Sourcejs plugin for spec comments
*
* @author Alexey Ostrovsky, Gennady Tsarinny
*/

.source-bbl_w {
position: absolute;
z-index: 3000;
Expand Down
14 changes: 6 additions & 8 deletions js/bubble.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Created by Alexey Ostrovsky, Gennady Tsarinny
* Date: 04.03.14
* Time: 19:57
* Sourcejs plugin for spec comments
*
* @author Alexey Ostrovsky, Gennady Tsarinny
*/
"use strict";

Expand All @@ -11,10 +11,10 @@ define([
"modules/module",
"modules/innerNavigation",
"modules/css",
"text!plugins/bubble/templates/bubble.html"
"text!npmPlugins/sourcejs-bubble/templates/bubble.html"
], function ($, opt, module, innerNavigation, css, template) {

var moduleCss = new css("bubble/bubble.css");
var moduleCss = new css("sourcejs-bubble/bubble.css");

function Bubble() {

Expand Down Expand Up @@ -61,9 +61,7 @@ define([
}, this.options.pluginsOptions.bubble);

$(function(){
if ( _this.options.pluginsEnabled.bubble ) {
_this.init();
}
_this.init();
});

}
Expand Down

0 comments on commit dd143df

Please sign in to comment.