Permalink
Browse files

Add .gitignore, remove tempfiles

  • Loading branch information...
1 parent 1fa2fc7 commit 2c57a9c48f5149685f0b9ffc8ea259d7523c2dc9 @pdl committed Mar 8, 2013
View
@@ -0,0 +1,19 @@
+*.bak
+*~
+*.old
+Makefile
+blib/
+pm_to_blib
+Build
+_build
+cover_db/
+nytprof*
+*.patch
+.DS_Store
+MYMETA.*
+*.o
+*.bs
+.DocumentRevisions-*
+.TemporaryItems
+.Trashes
+.fseventsd
View
@@ -1,26 +0,0 @@
-(function( $ ){
-
- var methods = {
- parseXMLText : function( content ) {
- // !!!
- }
- parseXMLElement : function( content ) {
- // !!!
- }
- };
-
- $.fn.bex = function( method ) {
-
- // Method calling logic
- if ( methods[method] ) {
- return methods[ method ].apply( this, Array.prototype.slice.call( arguments, 1 ));
- } else if ( typeof method === 'object' || ! method ) {
- return methods.init.apply( this, arguments );
- } else {
- $.error( 'Method ' + method + ' does not exist on jQuery.bex' );
- }
-
- };
-
-})( jQuery );
-
@@ -1,24 +0,0 @@
-(function($) {
- $.widget("ui.bexcdatasection", {
- options: {
-
- },
- _create: function() {
- $(this.element).bextextnode().addClass('bex-cdatasection ui-state-highlight');
- return this;
- },
- xml: function(){
- $(this.element).bextextnode('sleep');
- var cdata = $(this.element).find(".bex-textcontainer")[0].textContent;
- cdata.replace(']]>', ']]>');
- return '<![CDATA['+ cdata + ']]>';
- },
- destroy: function(){
- $(this.element).removeClass('bex-cdatasection ui-state-highlight');
- }
- _setOption: function(option, value) {
- $.Widget.prototype._setOption.apply( this, arguments );
-
- }
- });
-})(jQuery);
@@ -1,77 +0,0 @@
-/*
-
-Child Node
-
-Provides methods relating to a node's role as a child of an element or of the document root, for instance "parent" and "insertPreceding".
-
-Used by:
-
-* Element Nodes
-* Text Nodes
-* CDATA Sections
-* Comment nodes
-* Processing instructions
-
-*/
-(function($) {
- $.widget("ui.bexchildnode", {
- options: {
-
- },
- _create: function() {
- var self = this;
- return self;
- },
- parent: function(){
- var self = this;
- return $(self.element).parents('.bex-element,.bex-document').first();
- },
- ancestors: function(){ /*todo: add optional selector*/
- var self = this;
- return $(self.element).parents('.bex-element,.bex-document');
- },
- precedingSibling: function(){ /*todo: add optional selector*/
- var self = this;
- return $(self.element).prev();
- },
- precedingSiblings: function(){ /*todo: add optional selector*/
- var self = this;
- return $(self.element).prevAll();
- },
- followingSibling: function(){ /*todo: add optional selector*/
- var self = this;
- return $(self.element).next();
- },
- followingSiblings: function(){ /*todo: add optional selector*/
- var self = this;
- return self.nextAll();
- },
- insertPreceding: function(newNode){
- var self = this;
- /*todo: check if newNode is ok*/
- return $(self.element).before(newNode);
- },
- insertFollowing: function(newNode){
- var self = this;
- /*todo: check if newNode is ok*/
- return $(self.element).after(newNode);
- },
- removeNode: function() {
- var focusfallback = $(this.element).bexchildnode('followingSibling');
- if (!$(focusfallback).is('li')){
- focusfallback = $(this.element).bexchildnode('precedingSibling')
- }
- if (!$(focusfallback).is('li')) {
- focusfallback = $(this.element).bexchildnode('parent');
- }
- this.element.remove();
- $(focusfallback).find('button').first().focus();
- },
- destroy: function() {
-
- },
- _setOption: function(option, value) {
- $.Widget.prototype._setOption.apply( this, arguments );
- }
- });
-})(jQuery);
@@ -1,21 +0,0 @@
-(function($) {
- $.widget("ui.bexcommentnode", {
- options: {
-
- },
- _create: function() {
- $(this.element).bextextnode().addClass('bex-commentnode ui-state-disabled');
- return this;
- },
- xml: function(){
- $(this.element).bextextnode('sleep');
- return '<!--'+$(this.element).find(".bex-textcontainer")[0].textContent + '-->';
- },
- destroy: function(){
- $(this.element).removeClass('bex-commentnode ui-state-highlight');
- }
- _setOption: function(option, value) {
- $.Widget.prototype._setOption.apply( this, arguments );
- }
- });
-})(jQuery);
@@ -1,26 +0,0 @@
-(function($) {
- $.widget("ui.bextextcontainer", {
- options: {
- },
- _create: function() {
-
- var self = this,
- o = self.options,
- el = self.element
- .addClass("ui-helper-reset bex-contents")
- .sortable({
- connectWith: ".bex-contents",
- placeholder: "ui-state-highlight"
- })
- .disableSelection();
- return self;
- },
- destroy: function() {
- this.sleep();
- },
- _setOption: function(option, value) {
- $.Widget.prototype._setOption.apply( this, arguments );
-
- }
- });
-})(jQuery);
@@ -1,104 +0,0 @@
-(function($) {
- $.widget("ui.bexdocument", {
- options: {
- },
- _create: function() {
-
- var self = this;
- var o = self.options;
- var el = self.element;
-
-
- self.bexdocument = $('<div></div>')
- .addClass("ui-widget ui-widget-contents ui-helper-reset bex-document")
- .insertAfter(el).append(el);
- self.bexpreview = $('<div></div>')
- .addClass("ui-widget ui-widget-contents ui-helper-reset bex-preview")
- .appendTo(self.bexdocument);
- self.bexheader = $('<div></div>')
- .addClass("ui-widget-header ui-corner-all bex-document-header")
- .prependTo(self.bexdocument)
- .append(
- $('<button class="bex-show-tree">Tree</button>').button().click(function(){
- self.showtree();
- })
- )
- .append(
- $('<button class="bex-show-source">Source</button>').button().click(function(){
- self.showsource();
- })
- )
- .append(
- $('<button class="bex-show-preview">Preview</button>').button().click(function(){
- self.showpreview();
- })
- );
- $(self.bexdocument).bexparentnode();
- self.showtree();
- var bexdialogconfirmdelete = $('<div id="bex-dlg-confirm-delete"></div>').hide().appendTo(self.bexdocument);
- var bexdialoginsertnode = $('<div id="bex-dlg-insert">\
-<form>\
- <div id="bex-insert-location">\
- <input type="radio" id="insertPreceding" value="insertPreceding" name="bex-insert-location" /><label for="insertPreceding">Preceding</label>\
- <input type="radio" id="insertFollowing" value="insertFollowing" name="bex-insert-location"" /><label for="insertFollowing">Following</label>\
- <br/>\
- <input type="radio" id="append" value="append" name="bex-insert-location" checked="checked" /><label for="append">Append</label>\
- <input type="radio" id="prepend" value="prepend" name="bex-insert-location" /><label for="prepend">Prepend</label>\
- <br/>\
- <input type="radio" id="aroundSelf" name="bex-insert-location" /><label for="aroundSelf">Around</label>\
- <input type="radio" id="aroundContents" name="bex-insert-location" /><label for="aroundContents">Wrap Contents</label>\
- <textarea id="bex-xmlforinsertion" type="text"/>\
- </div>\
-</form>\
-</div>').hide().appendTo(self.bexdocument);
- $('#bex-insert-location').buttonset();
- zen_textarea.setup({pretty_break: true, use_tab: false});
- return self;
- },
- showpreview: function(){
- $(this.element).hide();
- $(this.bexdocument).find('>ul').hide();
- $(this.bexpreview).show();
- $(this.bexpreview).html(this.xmlpreview());
- },
- showtree: function(){
- this.tree();
- $(this.element).hide();
- $(this.bexpreview).hide();
- $(this.bexdocument).find('>ul').show();
- },
- showsource: function(){
- $(this.bexpreview).hide();
- $(this.bexdocument).find('>ul').hide();
- $(this.element).show().val(this.xml());
- },
- xml: function(){
- var source = '';
- $(this.bexdocument).bexparentnode("children").each(function(){
- source += $(this).bexelement('xml');
- });
- return source;
- },
- xmlpreview: function(){
- return this.xml(); // TODO: Add a callback so that users can insert their own XSLT.
- },
- tree: function(){
- var xml = $(this.element).val();
- var xmldoc = $.parseXML(xml);
- var root = $(xmldoc.documentElement);
- $(this.bexdocument).find('>ul').empty();
- $(this.bexdocument).bexparentnode(
- "append",
- $("<li></li>")
- .bexelement({"from": root})
- ).find('button').first().focus();
- },
- destroy: function() {
- this.element.after('.bex-document').first.unbindNode();
- },
- _setOption: function(option, value) {
- $.Widget.prototype._setOption.apply( this, arguments );
-
- }
- });
-})(jQuery);
Oops, something went wrong.

0 comments on commit 2c57a9c

Please sign in to comment.