Skip to content

tiny mistake in Form.Request Docs #254

Closed
challet opened this Issue Jun 22, 2011 · 0 comments

2 participants

@challet
challet commented Jun 22, 2011

A formRequest element's method is described on on the page https://github.com/mootools/mootools-more/blob/master/Docs/Forms/Form.Request.md .

According to the source code, I think it should be formUpdate https://github.com/mootools/mootools-more/blob/master/Source/Forms/Form.Request.js#L191

@anutron anutron was assigned Jun 22, 2011
@SergioCrisostomo SergioCrisostomo added a commit to SergioCrisostomo/mootools-more that referenced this issue May 1, 2014
@SergioCrisostomo SergioCrisostomo Correct documentation for `.formUpdate`
Documentation refers to a method `element.formRequest`. Such method
[does not exist](http://jsfiddle.net/CHEuL/).

The method name is
__[.formUpdate](https://github.com/mootools/mootools-more/blob/master/Source/Forms/Form.Request.js#L191)__

```js
console.log($('myForm').formUpdate);  // function (update, options){ ...
console.log($('myForm').formRequest); // undefined
```

fixes #254
01d3f84
@SergioCrisostomo SergioCrisostomo added a commit that closed this issue May 1, 2014
@SergioCrisostomo SergioCrisostomo Correct documentation for `.formUpdate`
Documentation refers to a method `element.formRequest`. Such method
[does not exist](http://jsfiddle.net/CHEuL/).

The method name is
__[.formUpdate](https://github.com/mootools/mootools-more/blob/master/Source/Forms/Form.Request.js#L191)__

```js
console.log($('myForm').formUpdate);  // function (update, options){ ...
console.log($('myForm').formRequest); // undefined
```

fixes #254
7e2b0f2
@SergioCrisostomo SergioCrisostomo added a commit that referenced this issue May 1, 2014
@SergioCrisostomo SergioCrisostomo Merge: Update documentation for .formUpdate
Documentation refers to a method `element.formRequest()`.
Such method does not exist (http://jsfiddle.net/CHEuL/).

The method correct name is `.formUpdate()` as can be seen in the source code:

     Element.implement('formUpdate', function(update, options){

console.log($('myForm').formUpdate);  // function (update, options){ ...
console.log($('myForm').formRequest); // undefined

fixes #254
fixes #1056
closes #1254
e578d54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.