Skip to content

Commit

Permalink
minor tweaks to library
Browse files Browse the repository at this point in the history
  • Loading branch information
somebee committed Aug 18, 2015
1 parent 7186377 commit d445a5c
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 35 deletions.
7 changes: 0 additions & 7 deletions lib/browser/imba.js
Expand Up @@ -1467,11 +1467,6 @@
return this.dom().getAttribute(key);
};

ElementTag.prototype.object = function (v){
if (arguments.length) { return ((this.setObject(v),v),this) };
return this._object;
};

ElementTag.prototype.setContent = function (content){
this.setChildren(content); // override?
return this;
Expand Down Expand Up @@ -1879,7 +1874,6 @@

ElementTag.prototype.initialize = ElementTag;


function HTMLElementTag(){ ElementTag.apply(this,arguments) };

subclass$(HTMLElementTag,ElementTag);
Expand Down Expand Up @@ -2354,7 +2348,6 @@

Imba.extendTag('htmlelement', function(tag){


tag.prototype.setChildren = function (nodes){
if (nodes && nodes.static) {
this.setStaticChildren(nodes);
Expand Down
16 changes: 1 addition & 15 deletions lib/browser/imba.min.js

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions lib/imba/dom.js
Expand Up @@ -87,11 +87,6 @@
return this.dom().getAttribute(key);
};

ElementTag.prototype.object = function (v){
if (arguments.length) { return ((this.setObject(v),v),this) };
return this._object;
};

ElementTag.prototype.setContent = function (content){
this.setChildren(content); // override?
return this;
Expand Down Expand Up @@ -499,7 +494,6 @@

ElementTag.prototype.initialize = ElementTag;


function HTMLElementTag(){ ElementTag.apply(this,arguments) };

subclass$(HTMLElementTag,ElementTag);
Expand Down
1 change: 0 additions & 1 deletion lib/imba/dom.static.js
Expand Up @@ -249,7 +249,6 @@

Imba.extendTag('htmlelement', function(tag){


tag.prototype.setChildren = function (nodes){
if (nodes && nodes.static) {
this.setStaticChildren(nodes);
Expand Down
Binary file added screenshot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 0 additions & 5 deletions src/imba/dom.imba
Expand Up @@ -56,10 +56,6 @@ class ElementTag
def getAttribute key
return dom.getAttribute(key)

def object v
return (object = v,self) if arguments:length
@object

def content= content
children = content # override?
self
Expand Down Expand Up @@ -374,7 +370,6 @@ class ElementTag

ElementTag:prototype:initialize = ElementTag


class HTMLElementTag < ElementTag

class SVGElementTag < ElementTag
Expand Down
1 change: 0 additions & 1 deletion src/imba/dom.static.imba
Expand Up @@ -216,7 +216,6 @@ def reconcileNested root, new, old, caret, container, ci

extend tag htmlelement


def setChildren nodes
if nodes and nodes:static
setStaticChildren(nodes)
Expand Down

0 comments on commit d445a5c

Please sign in to comment.