unify setOptions to set_options
authorMarkus Schmidt <[email protected]>
Wed, 22 Jul 2015 18:17:23 +0000 (22 20:17 +0200)
committerMarkus Schmidt <[email protected]>
Wed, 22 Jul 2015 18:17:23 +0000 (22 20:17 +0200)
toolkit/implements/events.js
toolkit/modules/filter.js
toolkit/modules/range.js
toolkit/widgets/gauge.js
toolkit/widgets/widget.js

index a1bc569..429a44f 100644 (file)
@@ -66,7 +66,7 @@ BASE = $class({
         this.__event_target = null;
         this.options = null;
     },
-    setOptions : function(o) {
+    set_options : function(o) {
         var opt = this.options;
         var key, a, b;
         if (typeof(o) != "object") {
index 9c75499..8a65f4a 100644 (file)
@@ -32,7 +32,7 @@ Filter = $class({
 
     initialize: function (options) {
         BASE.prototype.initialize.call(this);
-        this.setOptions(options);
+        this.set_options(options);
         this.reset();
         this.fire_event("initialized", this);
     },
index 50aa543..8cc2f71 100644 (file)
@@ -84,7 +84,7 @@ Range = $class({
     
     initialize: function (options, hold) {
         BASE.prototype.initialize.call(this);
-        this.setOptions(options);
+        this.set_options(options);
         this.fire_event("initialize", this);
         this.fire_event("initialized", this);
         return this;
index d01387d..f7510a2 100644 (file)
@@ -38,7 +38,7 @@ Gauge = $class({
         BASE.prototype.initialize.call(this);
         if (typeof options.title == "string")
             options.title = {title: options.title};
-        this.setOptions(options);
+        this.set_options(options);
         this._svg = makeSVG("svg", {
             "class": "toolkit-gauge",
             "width": this.options.width,
index f5a6324..20cbbdf 100644 (file)
@@ -85,7 +85,7 @@ Widget = $class({
         }
         // Main actions every widget needs to take
         this.fire_event("initialize", this);
-        this.setOptions(options);
+        this.set_options(options);
         if (!this.options.id)
             this.options.id = String.uniqueID();
         if (this.resize)