Skip to content

Commit

Permalink
bug fix && publish v2.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
farthinker committed May 7, 2015
1 parent 8f3eb0e commit 0da8088
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = (grunt) ->
deps:
'default': ['$', 'SimpleModule', 'simpleUtil']
amd: ['jquery', 'simple-module', 'simple-util']
cjs: ['jquery', 'simple-module', 'simple-util']
cjs: ['jquery', 'simplemodule', 'simple-util']
global:
items: ['jQuery', 'SimpleModule', 'simple.util']
prefix: ''
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-select",
"version": "2.0.5",
"version": "2.0.6",
"homepage": "https://github.com/mycolorway/simple-select",
"authors": [
"kshift <[email protected]>"
Expand Down
4 changes: 2 additions & 2 deletions lib/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports,
// like Node.
module.exports = factory(require("jquery"),require("simple-module"),require("simple-util"));
module.exports = factory(require("jquery"),require("simplemodule"),require("simple-util"));
} else {
root.simple = root.simple || {};
root.simple['select'] = factory(jQuery,SimpleModule,simple.util);
Expand Down Expand Up @@ -69,7 +69,7 @@ Select = (function(superClass) {
var idx, it, items, j, len, results1;
Select._tpl.select = "<div class=\"simple-select\">\n <span class=\"link-expand\" title=\"" + (this._t('all_options')) + "\">\n <i class=\"icon-caret-down\"><span>&#9662;</span></i>\n </span>\n <span class=\"link-clear\" title=\"" + (this._t('clear_selection')) + "\">\n <i class=\"icon-delete\"><span>&#10005;</span></i>\n </span>\n <div class=\"select-list\">\n <div class=\"loading\">" + (this._t('loading')) + "...</div>\n </div>\n</div>";
this.el = $(this.opts.el).hide();
this.select = $(Select._tpl.select).data("select", this).addClass(this.opts.cls).insertAfter(this.el);
this.select = $(Select._tpl.select).data("select", this).addClass(this.opts.cls).insertBefore(this.el);
this.input = $(Select._tpl.input).attr("placeholder", this.el.data("placeholder") || this.opts.placeholder).prependTo(this.select);
this.list = this.select.find(".select-list");
this.requireSelect = true;
Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-select",
"version": "2.0.5",
"version": "2.0.6",
"description": "a simple select plugin based on Simple Module",
"repository": {
"type": "git",
Expand All @@ -12,6 +12,12 @@
"url": "https://github.com/mycolorway/simple-select/issues"
},
"homepage": "https://github.com/mycolorway/simple-select",
"dependencies": {
"jquery": "2.x",
"simplemodule": "2.x",
"jquery-mousewheel": "3.x",
"simple-util": "2.x"
},
"devDependencies": {
"grunt": "0.x",
"grunt-contrib-watch": "0.x",
Expand Down
2 changes: 1 addition & 1 deletion src/select.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Select extends SimpleModule
@select = $(Select._tpl.select)
.data("select", @)
.addClass(@opts.cls)
.insertAfter @el
.insertBefore @el
@input = $(Select._tpl.input)
.attr("placeholder", @el.data("placeholder") or @opts.placeholder)
.prependTo @select
Expand Down

0 comments on commit 0da8088

Please sign in to comment.